
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <link href="/themes/admin_simpleboot3/public/assets/themes/flatadmin/bootstrap.min.css" rel="stylesheet">
    <link href="/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }
    </style>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: 'admin'/*当前应用名*/
        };
    </script>
    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip();
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    </head>

<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li>
                <a href="/admin/ads/lists.html">Advertisement list</a>
            </li>
            <li>
                <a href="/admin/ads/add.html">Add Advertisement</a>
            </li>
            <li class="active">
                <a>Edit Advertisement</a>
            </li>
        </ul>
        <form method="post" class="form-horizontal margin-top-20" action="/admin/ads/editpost.html">
            <div class="form-group">
                <label for="input-user_login" class="col-sm-2 control-label">
                    <span class="form-required">*</span>Title</label>
                <div class="col-md-6 col-sm-10">
                    <input type="text" class="form-control" id="input-user_login" name="post[news_title]" value="lipan ">
                </div>
            </div>

            <div class="form-group">
                <label for="input-user_login" class="col-sm-2 control-label">
                    <span class="form-required">*</span>image</label>
                <div class="col-md-6 col-sm-10">
                    <table class="table table-bordered">
                        <tr>
                            <th>thumb</th>
                        </tr>
                        <tr>
                            <td>
                                <div style="text-align: center;">
                                    <input type='hidden' name='post[more][thumbnail]' id='thumbnail'>
                                    <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
                                        <img src="/upload/admin/20180404/bd1fbbd864580cae25982b4a803c575b.jpg" id='thumbnail-preview' width='135' height='135' style='cursor: hand'
                                        />
                                    </a>
                                    <input type="button" class="btn btn-sm" onclick="$('#thumbnail-preview').attr('src','/themes/admin_simpleboot3/public/assets/images/default-thumbnail.png');$('#thumbnail').val('');return false;"
                                        value="取消图片">
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            
            <div class="form-group">
                <label for="input-user_login" class="col-sm-2 control-label">
                    <span class="form-required">*</span>Status</label>
                <div class="col-md-6 col-sm-10">
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" name="post[news_status]" value="1" checked >Publish
                        </label>
                    </div>
                </div>
            </div>
            
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input type="hidden" name="news_uuid" value="7" />
                    <button type="submit" class="btn btn-primary js-ajax-submit">Save</button>
                    <a class="btn btn-default" href="javascript:history.back(-1);">Back</a>
                </div>
            </div>
        </form>
    </div>
    <script src="/static/js/admin.js"></script>
</body>

</html>